home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / game / think / AmiChess.lha / AmiChess / src / repeat.c < prev    next >
C/C++ Source or Header  |  2002-10-31  |  139b  |  13 lines

  1. #include "common.h"
  2.  
  3. short Repeat()
  4. {
  5. short i,k;
  6. k=0;
  7. for(i=GameCnt-3;i>=Game50;i-=2)
  8.     {
  9.     if(Game[i].hashkey==HashKey) k++;
  10.     }
  11. return k;
  12. }
  13.